
public class VarableLifeTime {

	public static void main(String[] args) {
		int i = 100;
		for (i = 100; i >= 100 && i < 1000; i++) {

			int a = i / 100 % 10;
			int s = i / 10 % 10;
			int d = i % 10;
			if (i == a * a * a + s * s * s + d * d * d) {
				System.out.println(i);
			}

		}

	}
}